package com.example.nettyrpcdemo.core;

import java.util.concurrent.atomic.AtomicLong;

public class MsgIdGenerator {

    private static final AtomicLong seqIdGenerator = new AtomicLong();

    public static long nextSeqId() {
        return seqIdGenerator.incrementAndGet();
    }
}
